const mongoose = require('mongoose')

const Schema  = mongoose.Schema

const profileSchema = new Schema({
    type : {
        type : String,
        required : true
    },
    income : {
        type : String,
        required : true
    },
    outcome : {
        type : String,
        required : true
    },
    remark : {
        type : String,
        
    },
    cash : {
        type : String,
        required : true
    },
    descripe : {
        type : String,
        
    },
    regdate : {
        type : Date,
        default : Date.now
    }
})

module.exports = Profile = mongoose.model('profile',profileSchema)